/*
 * @Description: 职业认证
 * @Author: iamsmiling
 * @Date: 2021-05-30 13:08:34
 * @LastEditTime: 2021-06-09 22:28:35
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/professional_certify/dialog/show_admission_card_dialog.dart';
import 'package:flutter/material.dart';

class ProfessionalCertifyBody extends StatelessWidget {
  const ProfessionalCertifyBody({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          Container(
            margin: EdgeInsets.only(
              top: R.dimen.dp20,
              left: R.dimen.dp15,
              right: R.dimen.dp15,
            ),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text(
                      "企业名称：温州游模网络科技有限公司",
                      style: TextStyle(
                          fontSize: R.dimen.sp15, color: R.color.ff111111),
                    ),
                    GestureDetector(
                      child: Text(
                        "修改",
                        style: TextStyle(
                            fontSize: R.dimen.sp15, color: R.color.ff0690f0),
                      ),
                    )
                  ],
                ),
                Container(
                  margin:
                      EdgeInsets.only(top: R.dimen.dp16, bottom: R.dimen.dp18),
                  child: Text(
                    "认证后将点亮职业图标，提高可信度获得更多合作机会",
                    style: TextStyle(color: R.color.ff555555),
                  ),
                ),
                Container(
                  alignment: Alignment.center,
                  width: R.dimen.width - R.dimen.dp6 * 2,
                  height: (R.dimen.width - R.dimen.dp6 * 2) * 193 / 363,
                  decoration: BoxDecoration(
                      image: DecorationImage(
                          // scale: ,
                          fit: BoxFit.cover,
                          image: AssetImage(R.image.uploadCertificateBg))),
                  child: Container(
                    width: R.dimen.width,
                    margin: EdgeInsets.only(
                        left: R.dimen.dp24,
                        right: R.dimen.dp24,
                        top: R.dimen.dp18,
                        bottom: R.dimen.dp24),
                    decoration: BoxDecoration(
                        borderRadius: BorderRadius.circular(R.dimen.sp5),
                        color: R.color.ffeeeeee),
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Image.asset(R.image.uploadBertificate),
                        Container(
                            margin: EdgeInsets.only(top: R.dimen.dp24),
                            child: Text(
                              "请按要求上传您的名片/工牌/在职证明",
                              style: TextStyle(
                                  fontSize: R.dimen.sp13,
                                  color: R.color.ff666666),
                            )),
                        Text(
                          "任一种方式都可）证明你的职业信息",
                          style: TextStyle(
                              height: 2,
                              fontSize: R.dimen.sp13,
                              color: R.color.ff666666),
                        )
                      ],
                    ),
                  ),
                )
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(
                top: R.dimen.dp16,
                bottom: R.dimen.dp48,
                left: R.dimen.dp15,
                right: R.dimen.dp15),
            child: Row(
              children: [
                Container(
                    margin: EdgeInsets.only(right: R.dimen.dp48),
                    child: Text(
                      "拍照示例：",
                      style: TextStyle(
                          fontSize: R.dimen.sp15, color: R.color.ff111111),
                    )),
                Expanded(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Text(
                        "名片",
                        style: TextStyle(
                            fontSize: R.dimen.sp15, color: R.color.ff0690f0),
                      ),
                      GestureDetector(
                        onTap: () => showAdmissionCardDemoDialog(context),
                        child: Text(
                          "工牌",
                          style: TextStyle(
                              fontSize: R.dimen.sp15, color: R.color.ff0690f0),
                        ),
                      ),
                      Text(
                        "在职证明",
                        style: TextStyle(
                            fontSize: R.dimen.sp15, color: R.color.ff0690f0),
                      ),
                    ],
                  ),
                )
              ],
            ),
          ),
          Container(
              alignment: Alignment.centerLeft,
              margin: EdgeInsets.only(left: R.dimen.dp15),
              child: DefaultTextStyle(
                style: TextStyle(
                    fontSize: R.dimen.sp14, color: R.color.ff555555, height: 2),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Text(
                      "拍摄要求：",
                      style: TextStyle(
                          color: R.color.fffc7700, fontSize: R.dimen.sp15),
                    ),
                    Text("1、按示例模板要求拍照上传"),
                    Text("2、文字清晰可见"),
                    Text("3、企业名称与个人资料中所填写保持一致")
                  ],
                ),
              )),
        ],
      ),
    );
  }
}
